package com.ruoyi.manage.organization.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.utils.ListUtil;
import com.ruoyi.manage.organization.domain.BizOrganizationAudit;
import com.ruoyi.manage.organization.mapper.BizOrganizationAuditMapper;
import com.ruoyi.manage.organization.service.IBizOrganizationAuditService;
import org.springframework.stereotype.Service;


/**
 * 金融机构审核Service业务层处理
 *
 * @author ruoyi
 * @date 2025-08-15
 */
@Service
public class BizOrganizationAuditServiceImpl extends ServiceImpl<BizOrganizationAuditMapper, BizOrganizationAudit> implements IBizOrganizationAuditService {


    @Override
    public BizOrganizationAudit queryGetById(String id){
        BizOrganizationAudit bizOrganizationAudit = this.getById(id);
        return bizOrganizationAudit;
    }

    /**
     * 新增金融机构审核
     *
     * @param bizOrganizationAudit 金融机构审核
     * @return 结果
     */
    @Override
    public boolean addBizOrganizationAudit(BizOrganizationAudit bizOrganizationAudit){
        boolean save =this.save(bizOrganizationAudit);
        return save;
    }

    /**
     * 修改金融机构审核
     *
     * @param bizOrganizationAudit 金融机构审核
     * @return 结果
     */
    @Override
    public boolean updateBizOrganizationAudit(BizOrganizationAudit bizOrganizationAudit){
        return this.updateById(bizOrganizationAudit);
    }

    /**
     * 批量删除金融机构审核
     *
     * @param ids 需要删除的金融机构审核主键
     * @return 结果
     */
    @Override
    public boolean deleteBizOrganizationAuditByIds(String[] ids){
        return this.removeByIds(ListUtil.toList(ids));
    }

}
